﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Usuario.Master" Inherits="System.Web.Mvc.ViewPage<AdminCondominio.Dominio.AreaComun>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Editar Area Común</legend>
        <div class="editor-label" style="font-weight: bold">
            Codigo de Area Común :
        </div>

        <div class="display-field"><%: Model.CoAreaComun %></div>
        
        <div class="editor-label" style="font-weight: bold">
            Número de Personas
            :</div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.NuPersonas) %>
            <%: Html.ValidationMessageFor(model => model.NuPersonas) %>
        </div>
        <div class="editor-label" style="font-weight: bold">
            Area
            :</div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Area, String.Format("{0:F}", Model.Area)) %>
            <%: Html.ValidationMessageFor(model => model.Area) %>
        </div>
        <div class="editor-label" style="font-weight: bold">
            Ubicación
            :</div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Ubicacion) %>
            <%: Html.ValidationMessageFor(model => model.Ubicacion) %>
        </div>
        <div class="editor-label" style="font-weight: bold">
            Tipo de Area Común
            :</div>
        <div class="editor-field" >
            <%: Html.DropDownList("Tip_AreaComun", (IEnumerable<SelectListItem>)ViewData["List"])%>
        </div>
        <div class="editor-label" style="font-weight: bold">
            Estado
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Estado) %>
            <%: Html.ValidationMessageFor(model => model.Estado) %>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
